// 保存 左侧的菜单信息
import { constantRoutes } from '@/router/index.js'
const state = {
  menuList: [...constantRoutes] //  左侧的菜单信息
}

const mutations = {
  setMenuList(state, asyncRoutes) {
    // 静态的 + 动态的
    state.menuList = [...constantRoutes, ...asyncRoutes]
  }
}

const actions = {

}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}

